<div id="nav">
	<ul class="breadcrumb">
		<?php
			$i=0;
			if (count($nav_list) > 0):
			foreach ($nav_list as $key => $value){ 
				if ($i == count($nav_list)){ ?>
			 		<li><a href="<?php print $value; ?>">		 				
						<?php print $key; ?></a>
			<?php } else { ?>
					<li class="active"><a href="<?php print $value; ?>">					
						<?php print $key; ?></a>
			<?php }
			
				if ($i < (count($nav_list)-1)): ?>
					<span class="divider">></span></li>
			<?php else:?>
					</li>
			<?php endif;
				$i++; 
			}?>
		<?php endif; ?>
	</ul>
</div>